package isp.apps.example.shoppingcart.domain;

import java.math.BigDecimal;

public class CartItem
{
  private Integer id;
  private int quantity;
  private Item item;
  private BigDecimal tax, cost;
  private CompletedOrder order;
  
  public void setId(Integer id)
  {
    this.id = id;
  }

  public Integer getId()
  {
    return id;
  }

  public void setQuantity(int quantity)
  {
    this.quantity = quantity;
  }

  public int getQuantity()
  {
    return quantity;
  }


  public void setItem(Item newItem)
  {
    item = newItem;
    //item.getCartItems().add(this);
  }

  public Item getItem()
  {
    return item;
  }

  public void setTax(BigDecimal newTax)
  {
    this.tax = newTax;
  }

  public BigDecimal getTax()
  {
    return tax;
  }
  
  public void setCost(BigDecimal newCost)
  {
    cost = newCost;
  }
  
  public BigDecimal getCost()
  {
    return cost;
  }

  public void setOrder(CompletedOrder order)
  {
    this.order = order;
  }

  public CompletedOrder getOrder()
  {
    return order;
  }
}
